package com.island.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.island.dao.RoleDao;
import com.island.model.Role;
import com.island.service.IRoleService;
import com.pollexsoft.base.dao.EntityDao;
import com.pollexsoft.base.service.BaseService;

@Service
public class RoleServiceImpl extends BaseService<Role, java.lang.String> implements IRoleService {

	@Autowired
	private RoleDao roleDao;
	
	@SuppressWarnings("unchecked")
	@Override
	protected EntityDao getEntityDao() {
		return this.roleDao;
	}
	
	public void delRole(int id) {

		roleDao.delRole(id);
	}

	public List<Role> findAll() {

		return roleDao.findAll();
	}

	public void insertRole(Role role) {

		roleDao.insertRole(role);
	}

	public void updateRole(Role role) {

		roleDao.updateRole(role);
	}
}
